All Questions
57 questions
2votes
1answer
173views
Creating object in JS that is passed into IHttpHandler
I am working on a web page where I am creating a JS object using {} and []. This object is passed into a handler I wanted to ...
2votes
2answers
79views
How can I simplify this JQuery validation process?
How can I simplify this functioning JQuery validation process: ...
3votes
0answers
202views
Dynamic Bootstrap 4 modal using JavaScript OOP
I have created dynamic Bootstrap 4 modal using JavaScript OOP. Please verify and give your reviews how I can improve the code. I have passed four parameters to create a dynamic modal: ...
1vote
1answer
1kviews
Display Object as a node tree in HTML with clickable trace back to root node
I was given the following code and instructions for a technical test for a potential technical role I had applied for: ...
6votes
2answers
552views
Soccer field map creator
I am fairly new to OOP and am working on a little website project to practice. I wanted to post after getting the initial setup done in case I am making any major errors or not following best ...
2votes
0answers
51views
Event handler re-use in Javascript
I've been trying to deal with a lot of duplicate code in the first web pages I've been working on and have been playing around with the prototype model, which I think is the 'right' way to go about it....
5votes
1answer
78views
My simple jQuery website returns JSON data from two different servers
I'm looking advice from more experienced people about how I can improve my code. I also want to make my code object-oriented (create classes in separate .js files) but I don't how best to do it. How ...
1vote
1answer
74views
Objects using jQuery to maintain a playlist of shows
This is my first attempt at using OOP JavaScript in my work. I know the concepts but implementation is more complicated than I thought. Now the code is a mixture of several things (JavaScript/jQuery). ...
2votes
3answers
265views
jQuery plugin to highlight text spans in various colors
I am trying to tackle two fairly massive concepts through JavaScript and jQuery, the first being object-oriented programming and the second being how to build robust modular plugins with an OOP ...
6votes
1answer
2kviews
Simple Blackjack game using JavaScript and jQuery
For my first JavaScript/jQuery project, I made a simple Blackjack game. However, I would like to have a more object oriented approach. I would truly appreciate it if someone can review my code and ...
0votes
1answer
91views
JavaScript events architecture [closed]
I have made one architecture on my project and want to know. Is it good or bad? ...
3votes
0answers
148views
jQuery modal dialog plugin
I'm working on creating a new jQuery modal plugin. I'm pretty good at jQuery but still pretty new to the whole object oriented plug-and-play style of plugins so I used a different plugin I found ...
3votes
0answers
143views
jQuery form change listener, modularized using ES6
I have the following javascript code that I'm trying to modularize using ES6: ...
3votes
1answer
64views
OOP and non-OOP versions of layout and page animation code
I am trying to learn how to write more object oriented javascript code, but I am having a hard time understanding the correct way to do it, and how it is useful for front end development. As you can ...
3votes
1answer
90views
Stock performance app
I'm building an app that tells you a stock's percentage change in price between two dates by using Yahoo's API. Given a stock ticker and two dates, it currently outputs the percentage return to the ...